package com.example.demozy.vo;

import java.util.ArrayList;

/**
 * 条件单回测结果类
 * @author 张展鹏
 */
public class BackTestResultVO {
    // **************** 公开变量

    // **************** 私有变量

    private double initialCapital;
    private double property;
    private int share;
    private double capital;
    private double yield;
    private double transactionPrice;
    private ArrayList<SingleBackTestResultVO> singleBackTestResultVOS;

    // **************** 继承方法

    // **************** 公开方法

    public BackTestResultVO(double initialCapital, double property, int share,
            double capital, double yield, double transactionPrice) {
        this.initialCapital = initialCapital;
        this.property = property;
        this.share = share;
        this.capital = capital;
        this.yield = yield;
        this.transactionPrice = transactionPrice;
        this.singleBackTestResultVOS = new ArrayList<>();
    }

    public BackTestResultVO() {
        this.singleBackTestResultVOS = new ArrayList<>();
    }

    public double getInitialCapital() {
        return initialCapital;
    }

    public void setInitialCapital(double initialCapital) {
        this.initialCapital = initialCapital;
    }

    public double getProperty() {
        return property;
    }

    public void setProperty(double property) {
        this.property = property;
    }

    public int getShare() {
        return share;
    }

    public void setShare(int share) {
        this.share = share;
    }

    public double getCapital() {
        return capital;
    }

    public void setCapital(double capital) {
        this.capital = capital;
    }

    public double getYield() {
        return yield;
    }

    public void setYield(double yield) {
        this.yield = yield;
    }

    public double getTransactionPrice() {
        return transactionPrice;
    }

    public void setTransactionPrice(double transactionPrice) {
        this.transactionPrice = transactionPrice;
    }

    public ArrayList<SingleBackTestResultVO> getSingleBackTestResultVOS() {
        return singleBackTestResultVOS;
    }

    public void setSingleBackTestResultVOS(
            ArrayList<SingleBackTestResultVO> singleBackTestResultVOS) {
        this.singleBackTestResultVOS = singleBackTestResultVOS;
    }

    public void addSingleBackTestResultVO(SingleBackTestResultVO singleBackTestResultVO){
        this.singleBackTestResultVOS.add(singleBackTestResultVO);
    }

    // **************** 私有方法
}
